package com.situ.service.impl;

import com.situ.dao.StatisticsDao;
import com.situ.service.StatisticsService;
import com.situ.vo.StatisticsVO;

import java.util.List;

public class StatisticsServiceImpl implements StatisticsService {

    StatisticsDao dao =new StatisticsDao();

    @Override
    public List<StatisticsVO> all(Integer page, Integer limit, String keyword) {
        return dao.all((page - 1) * limit, limit, keyword);
    }

    @Override
    public Long count(String keyword) {
        return dao.count(keyword);
    }
}
